package com.library.bean;

public class User {
	
	private int userId;
	
	private String username;
	
	private String password;
	
	private String realName;
	
	private String sex;
	
	private String phone;
	
	private int age;
	
	private String headImg;

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	
	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	
	
	@Override
	public String toString() {
		return "User [userId=" + userId + ", username=" + username + ", password=" + password + ", realName=" + realName
				+ ", sex=" + sex + ", phone=" + phone + ", age=" + age + ", headImg=" + headImg + "]";
	}

	public User(String username, String password, String realName, String sex, String phone, int age) {
		super();
		this.username = username;
		this.password = password;
		this.realName = realName;
		this.sex = sex;
		this.phone = phone;
		this.age = age;
	}
	
	
	
	public User(String username, String password, String realName, String sex, String phone, int age, String headImg) {
		super();
		this.username = username;
		this.password = password;
		this.realName = realName;
		this.sex = sex;
		this.phone = phone;
		this.age = age;
		this.headImg = headImg;
	}

	public User() {
		
	}
	
	
	
	
}
